package com.haiyou.data.sdk.event;

import com.haiyou.common.event.AbstractEvent;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * 注册事件
 * 
 * @author xingyuan
 * @date 2023年8月31日 上午11:37:52
 */
@Getter
@Setter
@ToString
public class RegisterEvent extends AbstractEvent{/**
	 * 
	 */
	private static final long serialVersionUID = 8753121380338648022L;

	/**
	 * 玩家Id
	 */
	private long playerId;
	
	/**
	 * 用户uid
	 */
	private String uid;

	private int serverId;
	
	public static RegisterEvent build(String uid,long playerId,int serverId) {
		RegisterEvent event = new RegisterEvent();
		event.setPlayerId(playerId);
		event.setUid(uid);
		event.setServerId(serverId);
		return event;
	}
	 
}
